home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global stage
- if stage = 0 then
- if soundBusy(2) = 0 then
- sound playFile 2, "..\som\pletra.wav"
- end if
- if the visible of sprite 2 = 0 then
- set the visible of sprite 2 to 1
- else
- set the visible of sprite 2 to 0
- end if
- end if
- if stage = 1 then
- if the visible of sprite 3 = 0 then
- if soundBusy(2) = 0 then
- sound playFile 2, "..\som\balde.wav"
- end if
- set the visible of sprite 3 to 1
- else
- set the visible of sprite 3 to 0
- end if
- if (the top of sprite 10 > 135) and (the left of sprite 10 > 208) and ((the top of sprite 10 < 176) and (the left of sprite 10 < 245)) then
- set the visible of sprite 10 to 0
- set the puppet of sprite 10 to 0
- set the visible of sprite 3 to 0
- set the visible of sprite 4 to 1
- set the visible of sprite 5 to 1
- set stage to 2
- end if
- end if
- if stage = 2 then
- if the visible of sprite 5 = 1 then
- if soundBusy(2) = 0 then
- sound playFile 2, "..\som\pbulee.wav"
- end if
- set the visible of sprite 5 to 0
- else
- set the visible of sprite 5 to 1
- end if
- end if
- if stage = 4 then
- if the visible of sprite 9 = 1 then
- set the visible of sprite 9 to 0
- else
- set the visible of sprite 9 to 1
- end if
- if (the top of sprite 11 > 120) and (the left of sprite 11 > 479) and ((the top of sprite 11 < 140) and (the left of sprite 11 < 511)) then
- set the visible of sprite 8 to 0
- set the visible of sprite 9 to 0
- set the puppet of sprite 11 to 0
- set the visible of sprite 11 to 0
- set the visible of sprite 12 to 1
- set the visible of sprite 13 to 1
- set stage to 5
- end if
- end if
- if stage = 5 then
- if the visible of sprite 13 = 1 then
- if soundBusy(2) = 0 then
- sound playFile 2, "..\som\ptritura.wav"
- end if
- set the visible of sprite 13 to 0
- else
- set the visible of sprite 13 to 1
- end if
- end if
- updateStage()
- go(the frame)
- end
-